package demo1;

public class Test {
    public static void main(String[] args) {
        OutClass outClass = new OutClass() ;
        OutClass.InClass inClass = outClass.new InClass() ;
        outClass .test();
    }
}
class OutClass{
    public int a = 1 ;
    private int p = 9 ;
  public static int b = 2 ;


     class InClass{
       private int c = 3 ;
        int a = 4 ;
    public static  final int d = 4 ;
        public void test(){
            System.out.println(OutClass.this.a);
            System.out.println("内部类的test方法");
        }



    }
    public void test(){
        System.out.println("外部类的test方法");
        InClass inClass = new InClass();
        System.out.println(inClass.c);
    }

}